//
//  DHGoodListCell.m
//  宏达APP
//
//  Created by DIANGHONG on 2018/5/4.
//  Copyright © 2018年 123. All rights reserved.
//

#import "DHGoodListCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
@interface DHGoodListCell()
@property (weak, nonatomic) IBOutlet UIImageView *goodImageView;
@property (weak, nonatomic) IBOutlet UILabel *goodNameView;
@property (weak, nonatomic) IBOutlet UILabel *goodPriceView;

@end

@implementation DHGoodListCell

- (void)setGoodData:(NSDictionary *)goodData{
    _goodData = goodData;
    
    //设置控件数据
    [self.goodImageView sd_setImageWithURL:[NSURL URLWithString:goodData[@"goods_image"]]];
    self.goodNameView.text = goodData[@"goods_name"];
    self.goodPriceView.text = goodData[@"goods_promotion_price"];
}

@end
